package com.longdaji.decoration.bean;

import java.util.List;

import chihane.jdaddressselector.model.Province;

/**
 * Created by Kanade on 2018/3/17 0017.
 */

public class MyProvinces {
//
//    private List<Province> newProvinces;
//
//    public List<Province> getNewProvinces() {
//        return newProvinces;
//    }
//
//    public void setNewProvinces(List<Province> list) {
//        this.newProvinces = list;
//    }

    private List<ProvincesBean> provinces;

    public List<ProvincesBean> getProvinces() {
        return provinces;
    }

    public void setProvinces(List<ProvincesBean> provinces) {
        this.provinces = provinces;
    }

    //error:这里extends Province会报错 Unable to create converter for class
    public static class ProvincesBean {
        /**
         * id : 1
         * name : 北京
         */

        private int id;
        private String name;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        @Override
        public String toString() {
            return "ProvincesBean{" +
                    "id=" + id +
                    ", name='" + name + '\'' +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "MyProvinces{" +
                "provinces=" + provinces +
                '}';
    }


}
